import debounce from "lodash/debounce.js";
import type { Compiler } from "webpack";
import { startall } from "./startall";
const name = "prerendermarkdownplugin";
export const markdownlistener = debounce(() => {
    return startall();
}, 1000);
export function createprerenderplugin(): {
    apply(compiler: Compiler): void;
} {
    return {
        apply(compiler: Compiler) {
            compiler.hooks.beforeRun.tapPromise({ name: name }, async () => {
                return startall();
            });
        },
    };
}
export const mdreg = /\.md$/;
